package com.doform.android.xianggucheng.bean.request_bean;

import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-09.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqUpdateOrder {

    /**
     * _savetype 	是 	string 	操作类型：新增：add ； 编辑：update
     * id 	否 	string 	订单ID
     * guid 	否 	string 	订单GUID
     * state 	是 	string 	状态 4:待发货 5:已发货 6:已作废
     * whid 	是 	string 	仓库ID
     * libid 	是 	string 	出库人ID
     * paytype 	否 	string 	付款方式 1:现金,2:刷卡,3:微信,4:支付宝
     * haspay 	否 	string 	实收金额
     * debug 	是 	string 	开启：true
     */

    private String _savetype = "update";
    private String id;
    private String guid;
    private String state;
    private String whid;
    private String whname;
    private String libid;
    private String libname;
    private String paytype;
    private String haspay;
    private boolean debug;

    public ReqUpdateOrder(String mID, String mGUID, String state, String mLibraryId,String whname, String mWorkerId,String liname, String payStyle, String mSurePay) {
        this.id = mID;
        this.guid = mGUID;
        this.state = state;
        this.libid = mLibraryId;
        this.libname = liname;
        this.whid = mWorkerId;
        this.whname = whname;
        this.paytype = payStyle;
        this.haspay = mSurePay;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
